package designPatterns_demo.proxy_pattern.static_proxy.demo2;

public class RealImage implements Image {
	
	private String fileName;
	
	public RealImage(String fileName) {
		this.fileName = fileName;
		this.loadFromDisk();
	}

	@Override
	public void display() {
		System.out.println("Displaying " + fileName);
	}
	
	private void loadFromDisk() {
		System.out.println("Loading " + fileName);
	}
}
